Obtains the attributes that decorates method arguments.

Namespace: Keystone.Polaris
Assembly: Keystone (in Keystone.dll)

public static IEnumerable<TAtribute> GetAttributes<TAtribute>( 
this ParameterInfo reflectedArgument 

where TAtribute : Attribute, >, GetCustomAttributes(reflectedArgument, Cast<TAtribute>, ()
This language is not supported or no code example is available.

Type Parameters

TAtribute

The desired type of attributes to obtain.

Parameters

reflectedArgument

Type: ParameterInfo

The ParameterInfo that represents the method argument whose attributes of the desired type will be obtained.

Return Value

An enumeration of TAtribute that contains all the attributes of the desired type.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono